package com.xiyou.luckdraw.web.controller;

import io.swagger.annotations.Api;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @ClassName: TestApiCpntroller
 * @Description:
 * @author: limingxing
 * @Date: 2019-10-07 19:39
 */
@RestController
@RequestMapping("/mongo")
@Api(value = "MongoTestCpntroller", tags = "MongoTestCpntroller测试")
public class MongoTestCpntroller {

    /*@Autowired
    @Qualifier(value = "primaryMongoTemplate")
    protected MongoTemplate primaryMongoTemplate;


    @Autowired
    @Qualifier(value = "secondaryMongoTemplate")
    protected MongoTemplate secondaryMongoTemplate;

    public String primaryTest(){
        UserInfo userInfo = new UserInfo();
        userInfo.setId(new Long(1111));
        userInfo.setNickName("primaryTest");
        primaryMongoTemplate.insert(userInfo);
        return "OK";
    }*/


}
